package com.interclass;


public class LocalClass {
	private int age;
	@SuppressWarnings("unused")
	private String name;
	
	public LocalClass( int age,String name){
		this.age = age;
		this.name = name;
		class InterClass{
			private int age = 12;
			public void display(){
				System.out.println(this.age);
				System.out.println(LocalClass.this.age); //访问外部类的成员 //OutClass.this.age
			}
		}
		
		InterClass interClass = new InterClass();
		
		interClass.display();

	}
	

	
	public static void main(String[] args){

		@SuppressWarnings("unused")
		LocalClass cc = new LocalClass(44,"aaa");
		
		//System.out.println(cc.age);
		
	}

}
